﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

namespace MallProject.Model
{
    public class Settings
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string Value { get; set; }
        public string Description { get; set; }
        public int Section { get; set; }
        public int Status { get; set; }
        public Settings()
        {

        }
        public Settings(DataRow dr)
        {
            this.Id = Convert.ToInt32(dr["id"].ToString());
            this.Name = dr["name"].ToString();
            this.Value = dr["value"].ToString();
            this.Description = dr["description"].ToString();
            this.Section = Convert.ToInt32(dr["section"].ToString());
            this.Status = Convert.ToInt32(dr["status"].ToString());
        }
    }
}